const express = require('express');
const router = express.Router();
const categoryController = require('../controllers/categoryController');

// 前台接口 - 获取分类列表
router.get('/', categoryController.getCategories.bind(categoryController));

// 前台接口 - 获取分类详情
router.get('/:id', categoryController.getCategoryDetail.bind(categoryController));

module.exports = router;

